home *** CD-ROM | disk | FTP | other *** search
-
- NAME
- LockSer - SERIAL PORT ACCESS CONTROL FOR PROGRAMS
- WITHOUT OWNDEVUNIT-HANDLING.
-
- SYNOPSIS
- LockSer Command/A, D=Device/K, U=Unit/N, T=Time/N,
- A=Attempt/S,C=CheckSer/S,Debug/s,Help/s
- DESCRIPTION
- LockSer is a rewritten Version of LockSerial, ditributed with
- UUCP and OwnDevUnit.libraray. It is full updated for V37.
- NOW it has the ability to work with auto-detach programs.
-
- LockSer is used to run programs (e.g. terminal programs)
- after ensuring that a given serial port and unit is free. It
- locks the port, runs the program, then unlocks the port. The
- "command" argument should NOT run things in the background,
- since the port will be unlocked too early. You can RUN the
- LockSer command itself, if you wish.
-
- Getty or NE need not be running, but if it is it will maintain a
- port lock. When getty or NE sees the lock request it will close
- the device and relinquish control to the requesting program.
-
- UUCico an NE runs LockSerPort()/UnLockSerPort() internally,
- DO NOT RUN UUCICO OR NE WITH THIS COMMAND.
-
- WARNING
- If you want to run auto-detach programs with LockSer, you have to
- use the CheckSer-Option. But if such a program closes the serial.device
- and opens it again, you'll have a problem :-)
- (In this case LockSer guess that the programm has ended.)
-
- LockSer utilizes the OwnDevUnit.Library. Programs that directly
- support this library do not need to be run with the LockSer
- program.
-
- OPTIONS
- Command The command to run (if the command takes args,
- the entire thing should be in quotes)
-
- D=Device The serial device, default serial.device
-
- U=Unit The unit number, default 0
-
- C=CheckSer If you run an auto-detach programm, LockSer will wait
- until the serial.device can be opened again, after its
- closed by the program.
-
- T=Time The time in seconds LockSer waits between its tries to
- open the device again if the CheckSer-Option is given.
- default 5 sec.
-
- A=Attempt Do not lock up waiting for access if someone else
- has currently got the device locked.
-
-
- EXAMPLE
- 1> LockSer A C "NComm:NComm"
-
- REFERENCES
- NE, Getty
-